<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="pop_up_content">
	<div class="pop_up_title images_13">
		<s:if test="null==form.id || ''.equal(form.id)">
			新建竞争对手
		</s:if>
		<s:else>
			编辑竞争对手
		</s:else>
	</div>
	<div class="pop_up_body">
		<form id="saleChanceEdit" action="rivalAction!editRival.action" >
			<input type="hidden" value="<s:property value='form.id'/>" name="form.id"/>
			<input type="hidden" value="<s:property value='form.createUser'/>" name="form.createUser"/>
			<table border="0" cellpadding="0" cellspacing="0" width="450px">
				<tr style="height:22px;">
					<td class="form_input_value" >
						<span class="red">*</span>单位名称
					</td>
					<td colspan="3">
					   <input style="width:260" id="form.unitName" name="form.unitName" type="text" value="${form.unitName}" class="required validate_forbiddenChar max_length:40">
					</td>
				</tr>
				
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>项目名称
					</td>
					<td  colspan="3">
						<input style="width:260" id="form.projectName" name="form.projectName" type="text" value="${form.projectName}" />
					</td>
				</tr>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>与哪位领导联系
					</td>
					<td  colspan="3">
						<input style="width:260" id="form.relationLead" name="form.relationLead"  value="${form.relationLead}"  type="text" />
					</td>
				</tr>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>服务年份
					</td>
					<td  colspan="3">
						<input style="width:260" id="form.serviceYear" name="form.serviceYear" type="text" value="${form.serviceYear}" />
					</td>
				</tr>
				
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>采取的措施
					</td>
					<td  colspan="3">
						<input style="width:260" id="form.measure" name="form.measure" type="text" value="${form.measure}" />
					</td>
				</tr>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red"></span>我方措施
					</td>
					<td  colspan="3">
						<input style="width:260" id="form.myMeasure" name="form.myMeasure" type="text" value="${form.myMeasure}" />
					</td>
				</tr>
				
				
				<tr style="height:22px;">
					<td></td>
					<td colspan="3">
						<input id="saleChanceEditSubmit" type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
						<input type="button" value="取消" class="btn" onclick="hideDialog()" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
<script>
	
	/* 表单提交 */
	i.formSubmit("saleChanceEditSubmit",	//绑定的按钮id
					  "saleChanceEdit" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								window.location.reload();
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});
</script>